class TemplateTesterMapper {
  int? id;
  int? supplierId;
  String? supplier;
  int? deptId;
  String? deptName;
  int? testerId;
  String? testerName;
  String? displayName;
  String? createUid;
  String? createDate;
  String? writeUid;
  String? writeDate;
  String? sLastUpdate;

  TemplateTesterMapper(
      {this.id,
      this.supplierId,
      this.supplier,
      this.deptId,
      this.deptName,
      this.testerId,
      this.testerName,
      this.displayName,
      this.createUid,
      this.createDate,
      this.writeUid,
      this.writeDate,
      this.sLastUpdate});

  TemplateTesterMapper.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    supplierId = json['supplier_id'] != false ? json['supplier_id'][0] : '';
    supplier = json['supplier_id'] != false ? json['supplier_id'][1] : '';
    deptId = json['dept_id'] != false ? json['dept_id'][0] : '';
    deptName = json['dept_id'] != false ? json['dept_id'][1] : '';
    testerId = json['tester_id'] != false ? json['tester_id'][0] : '';
    testerName = json['tester_id'] != false ? json['tester_id'][1] : '';
    displayName = json['display_name'];
    createUid = json['create_uid'] is String ? json['create_uid'] : '';
    createDate = json['create_date'] is String ? json['create_date'] : '';
    writeUid = json['write_uid'] is String ? json['write_uid'] : '';
    writeDate = json['write_date'] is String ? json['write_date'] : '';
    sLastUpdate = json['__last_update'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['supplier_id'] = this.supplierId;
    data['dept_id'] = this.deptId;
    data['tester_id'] = this.testerId;
    data['display_name'] = this.displayName;
    data['create_uid'] = this.createUid;
    data['create_date'] = this.createDate;
    data['write_uid'] = this.writeUid;
    data['write_date'] = this.writeDate;
    data['__last_update'] = this.sLastUpdate;
    return data;
  }
}
